import request from '../utils/request'
export default {
  myComment(page){
    return request({
      url: '/comment?pageNum=' + page.pageNum + '&pageSize=' + page.pageSize,
      method: 'get'
    })
  },
  addComment(comment) {
    return request({
      url: `/comment`,
      method: 'post',
      data: comment
    })
  },
  delComment(id) {
    return request({
      url: `/comment/${id}`,
      method: 'delete'
    })
  }
}


